package com.cctc.ware;

import org.springframework.beans.factory.support.MethodReplacer;

import java.lang.reflect.Method;

/**
 * @Name ReplacementComputeValue
 * @Description: 方法替换
 * @Author: lichao
 * @Email: li2chao@126.com
 * @Date: 2024-01-14 17:21:44
 **/
public class ReplacementComputeValue implements MethodReplacer {
    @Override
    public Object reimplement(Object obj, Method method, Object[] args) throws Throwable {
        String input = (String) args[0];
        System.out.println("代理方法及参数: " + input);
        return input;
    }
}

